import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import  baidu from '@/components/baidu'
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  ak: 'sUdSmbsNs3SD23Gk4dYZXIusmRtYC3w7'
})
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      meta: {
        title: '首页',
        requiresAuth: true
      }
    },
    {
      path: '/example',
      redirect: '/example/table',
      component: baidu,
      name: '用例页面',
      meta: {
        requiresAuth: true,
        title: '用例页面',
        icon: 'fa fa-puzzle-piece'
      },
      children: [
      ]
    },
  ]
})
